home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-21 | 1.1 KB | 49 lines | [TEXT/ttxt] |
- --<<<
- -- Filename:
- -- database.sx
- -- Other Files Required:
- -- adObject.sx
- -- Purpose:
- -- Definition and methods for the database
- -- Specialized Classes:
- -- AdDataBase: indexable collection of adDataObjects,
- -- from which ads will be selected, based on model, year, and/or price,
- -- and then posted to the Classified Ads.
- -- Author:
- -- Steve Gano/Dionn Stewart
-
- in module Autofinder
-
- if (NOT isDefined AdDataObject) do filein theScriptDir name:"adobject.sx"
-
- class AdDataBase (ArrayList)
- end
-
- -- media is the media handle to access the media from object store
- method addDataObject self {class AdDataBase} data #key container:(undefined) ->
- (
- if data <> undefined do
- (
- -- Create a new ad data object from the raw data collection.
- local adObj
- adObj := new AdDataObject data:data
- if container <> undefined then
- (
- append self adObj
- )
- else
- append self adObj
- )
- )
-
- method addManyDataObjects self {class AdDataBase} data #key container:(undefined)->
- (
- for i in data do
- addDataObject self i container:container
- OK
- )
-
-
- -->>>
- "Compiled database.sx"
-